<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLoopsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('loops', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('轮播图标题');
            $table->string('img_path')->comment('图片地址')->default('');
<<<<<<< HEAD
            $table->string('post_title')->comment('文章标题');
            $table->integer('post_id')->comment('文章id');
=======
            $table->string('post_path')->comment('文章路径');
>>>>>>> 3cbfde5c21633bb47be419577bca65cd8c0581b5
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('loops');
    }
}
